﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace Ruleweaver.Rules
{
	public sealed class CompositeRule : Rule
	{
		internal CompositeRule(RuleType type, IEnumerable<Rule> rules) : base(type)
		{
			Rules = rules.ToList().AsReadOnly();
		}

		public ReadOnlyCollection<Rule> Rules { get; private set; }
	}
}